package lab02.test35;

/**
 * Created by Adminitrator on 2017/11/20.
 */
public class Test {
    public static void main(String[] args) {
        Manager m=new Manager("zhangsan",11000);
        Salesman n=new Salesman("lisi",5500,100,10);
        Worker w=new Worker("wangwu",100,30);
        System.out.println(m.getName()+"经理工资为"+m.computeSalary());
        System.out.println(m.getName()+"销售工资为"+n.computeSalary());
        System.out.println(m.getName()+"工人工资为"+w.computeSalary());
    }


}
